inherited FPesquisaNotaFiscalEmitida: TFPesquisaNotaFiscalEmitida
  Left = 292
  Top = 141
  Caption = 'Pesquisa Notas Fiscais Emitidas'
  ClientHeight = 461
  ClientWidth = 841
  OldCreateOrder = True
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  inherited Panel2: TPanel
    Width = 841
    inherited BtnLimpar: TBitBtn
      OnClick = BtnLimparClick
    end
    inherited BtnImprimir: TBitBtn
      OnClick = BtnImprimirClick
    end
    inherited BtnSelecionar: TBitBtn
      Visible = False
    end
    inherited BtnFechar: TBitBtn
      Left = 352
    end
  end
  inherited Panel1: TPanel
    Width = 841
    Height = 420
    object Label1: TLabel [0]
      Left = 3
      Top = 3
      Width = 41
      Height = 13
      Caption = 'Empresa'
    end
    object Label2: TLabel [1]
      Left = 252
      Top = 3
      Width = 83
      Height = 13
      Caption = 'N'#186' da Nota Fiscal'
    end
    object Label3: TLabel [2]
      Left = 342
      Top = 3
      Width = 63
      Height = 13
      Caption = 'N'#186' do Pedido'
    end
    object Label4: TLabel [3]
      Left = 3
      Top = 45
      Width = 32
      Height = 13
      Caption = 'Cliente'
    end
    inherited DBGrid1: TDBGrid
      Left = 65
      Top = 244
      Width = 24
      Height = 25
      Align = alNone
      Visible = False
    end
    inherited Panel3: TPanel
      Top = 399
      Width = 839
    end
    object DBLEmpresa: TDBLookupComboBox
      Left = 3
      Top = 19
      Width = 243
      Height = 21
      KeyField = 'EMP_CODIGO'
      ListField = 'EMP_RAZAO'
      ListSource = DSEmpresa
      TabOrder = 2
      OnEnter = DBLEmpresaEnter
      OnKeyDown = DBLEmpresaKeyDown
    end
    object EdNNotaFiscal: TEdit
      Left = 252
      Top = 19
      Width = 83
      Height = 21
      TabOrder = 3
    end
    object EdNPedido: TEdit
      Left = 342
      Top = 19
      Width = 83
      Height = 21
      TabOrder = 4
    end
    object DBLCliente: TDBLookupComboBox
      Left = 3
      Top = 61
      Width = 422
      Height = 21
      KeyField = 'CLI_CODIGO'
      ListField = 'CLI_RAZAO'
      ListSource = DSCliente
      TabOrder = 5
      OnEnter = DBLClienteEnter
      OnKeyDown = DBLClienteKeyDown
    end
    object GroupDtEmissao: TGroupBox
      Left = 3
      Top = 87
      Width = 212
      Height = 55
      Caption = '  Data da Emiss'#227'o  '
      TabOrder = 6
      object Label5: TLabel
        Left = 4
        Top = 24
        Width = 14
        Height = 13
        Caption = 'De'
      end
      object Label7: TLabel
        Left = 111
        Top = 24
        Width = 6
        Height = 13
        Caption = 'a'
      end
      object DtEmissao1: TDateEdit
        Left = 21
        Top = 24
        Width = 88
        Height = 21
        NumGlyphs = 2
        TabOrder = 0
      end
      object DtEmissao2: TDateEdit
        Left = 121
        Top = 24
        Width = 88
        Height = 21
        NumGlyphs = 2
        TabOrder = 1
      end
    end
    object GroupDtVencimento: TGroupBox
      Left = 213
      Top = 87
      Width = 212
      Height = 55
      Caption = '  Data da Vencimento  '
      TabOrder = 7
      object Label6: TLabel
        Left = 4
        Top = 24
        Width = 14
        Height = 13
        Caption = 'De'
      end
      object Label8: TLabel
        Left = 111
        Top = 24
        Width = 6
        Height = 13
        Caption = 'a'
      end
      object DtVencimento1: TDateEdit
        Left = 21
        Top = 24
        Width = 88
        Height = 21
        NumGlyphs = 2
        TabOrder = 0
      end
      object DtVencimento2: TDateEdit
        Left = 121
        Top = 24
        Width = 88
        Height = 21
        NumGlyphs = 2
        TabOrder = 1
      end
    end
    object GroupFormaPagto: TGroupBox
      Left = 3
      Top = 144
      Width = 125
      Height = 77
      Caption = '  Forma de Pagamento  '
      TabOrder = 8
      object CheckAVista: TCheckBox
        Left = 4
        Top = 24
        Width = 54
        Height = 17
        Caption = 'A Vista'
        TabOrder = 0
      end
      object CheckFaturado: TCheckBox
        Left = 60
        Top = 24
        Width = 61
        Height = 17
        Caption = 'Faturado'
        Checked = True
        State = cbChecked
        TabOrder = 1
      end
    end
    object GroupOrdenacao: TGroupBox
      Left = 128
      Top = 144
      Width = 297
      Height = 77
      Caption = '  Ordenar por:  '
      TabOrder = 9
      object RadioEmpresa: TRadioButton
        Left = 2
        Top = 14
        Width = 89
        Height = 17
        Caption = 'Empresa'
        TabOrder = 0
      end
      object RadioNNotaFiscal: TRadioButton
        Left = 2
        Top = 29
        Width = 106
        Height = 17
        Caption = 'N'#186' da Nota Fiscal'
        TabOrder = 1
      end
      object RadioNPedido: TRadioButton
        Left = 2
        Top = 44
        Width = 89
        Height = 17
        Caption = 'N'#186' do Pedido'
        TabOrder = 2
      end
      object RadioCliente: TRadioButton
        Left = 2
        Top = 59
        Width = 69
        Height = 14
        Caption = 'Cliente'
        TabOrder = 3
      end
      object RadioDtEmissao: TRadioButton
        Left = 105
        Top = 14
        Width = 101
        Height = 17
        Caption = 'Data de Emiss'#227'o'
        Checked = True
        TabOrder = 4
        TabStop = True
      end
      object RadioDtVenciemento: TRadioButton
        Left = 105
        Top = 29
        Width = 117
        Height = 17
        Caption = 'Data do Vencimento'
        TabOrder = 5
      end
      object RadioFPagto: TRadioButton
        Left = 105
        Top = 44
        Width = 119
        Height = 17
        Caption = 'Forma de Pagamento'
        TabOrder = 6
      end
      object RadioValor: TRadioButton
        Left = 105
        Top = 59
        Width = 119
        Height = 15
        Caption = 'Valor'
        TabOrder = 7
      end
      object GroupBox1: TGroupBox
        Left = 227
        Top = 7
        Width = 67
        Height = 66
        Caption = '  Tipo  '
        TabOrder = 8
        object RadioDeCresc: TRadioButton
          Left = 5
          Top = 35
          Width = 59
          Height = 17
          Caption = 'Decresc'
          TabOrder = 0
        end
        object RadioCresc: TRadioButton
          Left = 5
          Top = 19
          Width = 51
          Height = 17
          Caption = 'Cresc'
          Checked = True
          TabOrder = 1
          TabStop = True
        end
      end
    end
    object RLReport1: TRLReport
      Left = 24
      Top = 232
      Width = 794
      Height = 1123
      DataSource = DSPesquisa
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -13
      Font.Name = 'Arial'
      Font.Style = []
      Visible = False
      object RLBand1: TRLBand
        Left = 38
        Top = 38
        Width = 718
        Height = 121
        BandType = btColumnHeader
        object RLLabel1: TRLLabel
          Left = 250
          Top = 19
          Width = 214
          Height = 22
          Caption = 'Notas Fiscais Emitidas'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -19
          Font.Name = 'Arial'
          Font.Style = [fsBold, fsUnderline]
          ParentFont = False
        end
        object RLLabel2: TRLLabel
          Left = 568
          Top = 24
          Width = 46
          Height = 14
          Caption = 'Emiss'#227'o:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel5: TRLLabel
          Left = 568
          Top = 8
          Width = 38
          Height = 14
          Caption = 'P'#225'gina:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLSystemInfo1: TRLSystemInfo
          Left = 616
          Top = 24
          Width = 34
          Height = 14
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Info = itNow
          ParentFont = False
        end
        object RLSystemInfo3: TRLSystemInfo
          Left = 616
          Top = 8
          Width = 72
          Height = 14
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          Info = itPageNumber
          ParentFont = False
        end
        object RLDraw1: TRLDraw
          Left = 0
          Top = 98
          Width = 718
          Height = 1
        end
        object RLDraw2: TRLDraw
          Left = 0
          Top = 119
          Width = 718
          Height = 1
        end
        object RLLabel3: TRLLabel
          Left = 16
          Top = 8
          Width = 54
          Height = 15
          Caption = 'Empresa'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLLabel3BeforePrint
        end
        object RLLabel4: TRLLabel
          Left = 16
          Top = 24
          Width = 165
          Height = 15
          Caption = 'Gest'#227'o Empresarial / Vendas'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLabel6: TRLLabel
          Left = 4
          Top = 101
          Width = 65
          Height = 15
          Caption = 'Nota Fiscal'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLLabel7: TRLLabel
          Left = 76
          Top = 101
          Width = 42
          Height = 15
          Caption = 'Pedido'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLLabel8: TRLLabel
          Left = 124
          Top = 101
          Width = 42
          Height = 15
          Caption = 'Cliente'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLLabel10: TRLLabel
          Left = 418
          Top = 101
          Width = 52
          Height = 15
          Alignment = taCenter
          Caption = 'Emiss'#227'o'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLLabel11: TRLLabel
          Left = 484
          Top = 101
          Width = 72
          Height = 15
          Alignment = taCenter
          Caption = 'Vencimento'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLLabel12: TRLLabel
          Left = 585
          Top = 101
          Width = 33
          Height = 15
          Alignment = taRightJustify
          Caption = 'Valor'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLLabel13: TRLLabel
          Left = 623
          Top = 101
          Width = 92
          Height = 15
          Caption = 'Forma de Pagto'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLLFiltro1: TRLLabel
          Left = 329
          Top = 44
          Width = 60
          Height = 15
          Alignment = taCenter
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLFiltro2: TRLLabel
          Left = 329
          Top = 61
          Width = 60
          Height = 15
          Alignment = taCenter
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLLFiltro3: TRLLabel
          Left = 329
          Top = 78
          Width = 60
          Height = 15
          Alignment = taCenter
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -12
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
      end
      object RLBand2: TRLBand
        Left = 38
        Top = 159
        Width = 718
        Height = 20
        object RLDBText1: TRLDBText
          Left = 4
          Top = 2
          Width = 66
          Height = 15
          Alignment = taCenter
          AutoSize = False
          DataField = 'NF_NUMERONF'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText2: TRLDBText
          Left = 76
          Top = 2
          Width = 42
          Height = 15
          Alignment = taCenter
          AutoSize = False
          DataField = 'NF_PEDIDOVENDA'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText3: TRLDBText
          Left = 124
          Top = 2
          Width = 281
          Height = 15
          AutoSize = False
          DataField = 'CLI_RAZAO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText5: TRLDBText
          Left = 412
          Top = 2
          Width = 66
          Height = 15
          Alignment = taCenter
          AutoSize = False
          DataField = 'NF_DATAEMISSAO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText6: TRLDBText
          Left = 484
          Top = 2
          Width = 72
          Height = 15
          Alignment = taCenter
          AutoSize = False
          DataField = 'NF_DATAVENCIMENTO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText7: TRLDBText
          Left = 562
          Top = 2
          Width = 56
          Height = 15
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'NF_VALORFINALNOTA'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText8: TRLDBText
          Left = 623
          Top = 2
          Width = 92
          Height = 15
          Alignment = taCenter
          AutoSize = False
          DataField = 'NF_FORMAPAGAMENTO'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
      end
      object RLBand3: TRLBand
        Left = 38
        Top = 179
        Width = 718
        Height = 21
        BandType = btSummary
        object RLLabel14: TRLLabel
          Left = 6
          Top = 4
          Width = 25
          Height = 14
          Caption = 'Qtd:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLDraw3: TRLDraw
          Left = 1
          Top = 1
          Width = 716
          Height = 1
        end
        object RLDBResult1: TRLDBResult
          Left = 35
          Top = 4
          Width = 44
          Height = 14
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          Info = riCount
          ParentFont = False
        end
        object RLLabel15: TRLLabel
          Left = 490
          Top = 4
          Width = 33
          Height = 14
          Caption = 'Total:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLDBResult2: TRLDBResult
          Left = 528
          Top = 4
          Width = 90
          Height = 14
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'NF_VALORFINALNOTA'
          DataSource = DSPesquisa
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          Info = riSum
          ParentFont = False
        end
      end
    end
  end
  inherited QPesquisa: TQuery
    SQL.Strings = (
      'SELECT             '
      ' '#9'                NOTAFISCALVENDA.NF_NUMERONF,  '
      '                                NOTAFISCALVENDA.NF_PEDIDOVENDA,'
      
        '                                CLIENTE.CLI_RAZAO,              ' +
        '                  '
      
        '                                EMPRESA.EMP_RAZAO,              ' +
        '             '
      '                                NOTAFISCALVENDA.NF_DATAEMISSAO,'
      
        '                                NOTAFISCALVENDA.NF_DATAVENCIMENT' +
        'O,'
      
        '                                NOTAFISCALVENDA.NF_VALORFINALNOT' +
        'A, '
      
        '                                NOTAFISCALVENDA.NF_FORMAPAGAMENT' +
        'O,'
      
        '                                PEDIDOVENDA.PED_CLIENTE,        ' +
        '                  '
      
        '                                NOTAFISCALVENDA.CODIGOEMPRESA   ' +
        '         '
      
        '                           FROM NOTAFISCALVENDA                 ' +
        '                     '
      
        '                           INNER JOIN EMPRESA ON                ' +
        '                       '
      
        '                            '#9'(EMPRESA.EMP_CODIGO = NOTAFISCALVEN' +
        'DA.CODIGOEMPRESA) '
      
        '                           INNER JOIN PEDIDOVENDA ON            ' +
        '                    '
      
        '                            '#9'(PEDIDOVENDA.PED_CODIGO = NOTAFISCA' +
        'LVENDA.NF_PEDIDOVENDA) '
      
        '                           INNER JOIN CLIENTE ON                ' +
        '                   '
      
        '                          '#9'(CLIENTE.CLI_CODIGO = PEDIDOVENDA.PED' +
        '_CLIENTE)   '
      
        '                           WHERE NOTAFISCALVENDA.NF_SITUACAO = '#39 +
        '1'#39)
    Left = 8
    Top = 233
    object QPesquisaNF_NUMERONF: TIntegerField
      FieldName = 'NF_NUMERONF'
    end
    object QPesquisaNF_PEDIDOVENDA: TIntegerField
      FieldName = 'NF_PEDIDOVENDA'
    end
    object QPesquisaCLI_RAZAO: TStringField
      FieldName = 'CLI_RAZAO'
      Size = 60
    end
    object QPesquisaEMP_RAZAO: TStringField
      FieldName = 'EMP_RAZAO'
      Size = 60
    end
    object QPesquisaNF_DATAEMISSAO: TDateTimeField
      FieldName = 'NF_DATAEMISSAO'
    end
    object QPesquisaNF_DATAVENCIMENTO: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO'
    end
    object QPesquisaNF_VALORFINALNOTA: TFloatField
      FieldName = 'NF_VALORFINALNOTA'
      DisplayFormat = '0.,00'
    end
    object QPesquisaNF_FORMAPAGAMENTO: TStringField
      FieldName = 'NF_FORMAPAGAMENTO'
      Size = 40
    end
    object QPesquisaPED_CLIENTE: TIntegerField
      FieldName = 'PED_CLIENTE'
    end
    object QPesquisaCODIGOEMPRESA: TIntegerField
      FieldName = 'CODIGOEMPRESA'
    end
  end
  inherited DSPesquisa: TDataSource
    Left = 16
    Top = 321
  end
  object DSEmpresa: TDataSource
    DataSet = DMGestao.QEmpresa
    Left = 16
    Top = 280
  end
  object DSCliente: TDataSource
    DataSet = DMGestao.QCliente
    Left = 16
    Top = 376
  end
end
